package com.daekwang.service;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;

import com.daekwang.abstraction.User;
import com.daekwang.domain.UserVO;

public class UserService implements User{

	private SqlSessionTemplate template;

	public void setTemplate(SqlSessionTemplate template) {
		this.template = template;
	}

	public int userAdd(UserVO user) {
		return template.insert("user.userAdd", user);
	}

	@Override
	public List<UserVO> login(UserVO user) {
		return template.selectList("user.login", user);
	}
}
